<template>
  <div class="home-view">
    <h1>欢迎来到智能运维平台</h1>
    <p>请从左侧菜单选择功能。</p>
    <button @click="goToAnomalyDetection">进入超实时预测</button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter();

const goToAnomalyDetection = () => {
  router.push({ name: 'AnomalyDetection' });
};
</script>

<style scoped>
.home-view {
  padding: 40px;
  text-align: center;
  color: #333;
}
</style>